<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.weifly.jettycn.JettycnUtil" %>
<%@ page import="com.weifly.jettycn.domain.Catalog" %>
<%@ page import="com.weifly.jettycn.util.PageInfo" %>
<%@ page import="com.weifly.jettycn.util.TreeNode" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.HashMap" %>
<%

	PageInfo proPageInfo = (PageInfo)request.getAttribute("projectList");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/homepage.css"  />
    <title>java交流网站 - 项目</title>
  </head>
  <body>
    <div id="homepage">
      <jsp:include page="/header.jsp"/>
      <table class="table_layout" border="0" cellpadding="0" cellspacing="0" style="margin: 0px 0px 10px 0px;">
        <tr>
          <td colspan="3">
            <div style="float: left;font-size: 14px;padding: 5px 5px;">
              <span>当前分类：</span>
              <span><a href="<%=request.getContextPath()%>/project/main.do">全部</a></span>
<%
	List catalogLevels = (List)request.getAttribute("catalogLevels");
	for(int i=0;i<catalogLevels.size();i++){
		TreeNode node = (TreeNode)catalogLevels.get(i);
		Catalog catalog = (Catalog)node.getTarget();
%>
			&gt;&gt;&nbsp;<span><a href="<%=request.getContextPath()%>/project/main.do?catalog=<%=catalog.getCatalogid()%>"><%=catalog.getName()%></a></span>
<%
	}
%>
            </div>
            <div style="float: right;">
<%
	Map<String, String> paramMap = new HashMap<String, String>();
	paramMap.put("catalog", request.getParameter("catalog"));
	JettycnUtil.outPagebar(request, out, proPageInfo, "/project/main.do", paramMap);
%>
            </div>
          </td>
        </tr>
        <tr>
          <td width="220px" valign="top">
            <jsp:include page="/project/main_catalog.jsp"/>
          </td>
          <td width="15px"></td>
          <td width="715px" valign="top">
            <jsp:include page="/project/main_list.jsp"/>
          </td>
        </tr>
      </table>
      <jsp:include page="/footer.jsp"/>
    </div>
  </body>
</html>